package com.cgtong.android.mvp.contract;

import com.cgtong.android.bean.RecordBean;
import com.zhouyou.http.callback.SimpleCallBack;
import com.zhouyou.http.exception.ApiException;

import java.util.List;

/**
 * Created by Tinwai on 2017/10/26.
 */
public interface GetScorePageContract {
    interface Model {
        void getScoreDatas(int maxId, int pageSize, SimpleCallBack callBack);
    }

    interface View {

        void setRefreshing(boolean isRefresh);

        void setEnableLoadMore(boolean enabled);

        void setScoreDatas(boolean isRefresh, List<RecordBean> list);

        void onLoadMoreEnd(boolean isLoadMoreEnd);

        void onError(ApiException e);

        void onNullData();
    }

    interface Presenter {
        void getScoreDatas(int maxId, int pageSize, boolean isRefresh);
    }
}
